//
//  TCCalendar.h
//  TCCalendarSelector
//
//  Created by 叮叮 on 2021/5/8.
//

#import <UIKit/UIKit.h>
#import "TCCalendarDateModel.h"

NS_ASSUME_NONNULL_BEGIN

@protocol TCCalendarDelegate <NSObject>

@optional
/// 日期段选择回调
- (void)selectedDurationDateWithStartDate:(nullable TCCalendarDateModel *)start endDate:(nullable TCCalendarDateModel *)end;
/// 单个日期选择回调
- (void)selectedDurationDateWithDate:(nullable TCCalendarDateModel *)start;

@end

@interface TCCalendar : UIView
/// 类属行，选中颜色
@property (nonatomic, class) UIColor *selectedColor;
/// 类属行，今天颜色
@property (nonatomic, class) UIColor *todayColor;
/// 隐藏后移除视图，默认为 YES
@property (nonatomic, assign) BOOL removeOnHidden;
/// 是否单选，默认为 NO
@property (nonatomic, assign) BOOL isSingle;
/// 代理
@property (nonatomic, weak) id<TCCalendarDelegate> delegate;
/// 显示视图
- (void)show;
@end

NS_ASSUME_NONNULL_END
